<?php
namespace app\Model\Wechat;

class Factory
{
    public static function make($name, $arguments)
    {
        $application = "\\app\\Model\\Wechat\\{$name}\\Application";

        return new $application($arguments);
    }

    public static function __callStatic($name,$arguments)
    {
        return self::make($name, $arguments);
    }
}